package com.fxd.serviceorder.feign;

import com.fxd.model.product.bean.Product;
import com.fxd.serviceorder.feign.fallback.ProductFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xudongfu
 * @date 2025/06/12
 */
@FeignClient(value = "service-product", fallback = ProductFeignClientFallBack.class)
public interface ProductFeignClient {

    @GetMapping("/api/product/product/{productId}")
    Product getProductById(@PathVariable("productId") Long productId);
}
